package cn.itcast.service;

import cn.itcast.entity.PageResult;
import cn.itcast.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionService {

    PageResult findPermission(Integer currentPage, Integer pageSize, String queryString);

    void addPermission(Permission permission);

    void updatePermission(Permission permission);

    Permission findPermissionById(Integer id);

    boolean deletePermissionById(Integer id);

    List<Permission> findAllPermission();

    Set<Permission> findMenuAssociationPermission(Integer[] menuIds);
}
